package com.gp.service.impl;

import com.gp.dao.IncomeDao;
import com.gp.service.IncomeService;
import com.gp.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program:carrent-pro
 * @author: luzzh
 * @Time: 2022-03-12 17:27
 * @Version: 1.0
 */
@Service
public class IncomeServiceImpl implements IncomeService {
    @Autowired
    private IncomeDao incomeDao;

    @Override
    public CommonResult selectIncome(String yearMonth) {
        List<Map> list = incomeDao.selectIncome(yearMonth);
        return new CommonResult(200,"查询成功",list);
    }
}
